<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绑定设置</title>
    <link href="${pageContext.request.contextPath}/css/customer/binding_set.css" rel="stylesheet">
    <script src="${pageContext.request.contextPath}/dist/jquery-3.6.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/js/home/index.js"></script>
</head>
<body>
${serverResponse}
<c:import url="/header/header.jsp"/>
<div class="binding-main">
    <div class="binding-main-tittle">
        <span>绑定设置</span>
    </div>
    <div class="binding-form">
        <form action="${pageContext.request.contextPath}/customer/binding_set" class="bound-from" method="post">
            <input type="hidden" name="_method" value="put"/>
            <input type="hidden" name="custId" value="${loginCustomer.custId}"/>
            <span>${responseMsg}</span>
            <ul>
                <li>
                    <label>用户名:</label>
                    <span>${loginCustomer.custNickname}</span>
                </li>
                <li>
                    <label>绑定邮箱：</label>
                    <input type="text" class="email" placeholder="请输入邮箱" value="${loginCustomer.custEmail}"
                           name="custEmail">
                    <span class="email-msg"></span>
                </li>
                <li>
                    <label>绑定手机：</label>
                    <span class="norspan">${loginCustomer.custTelno}</span>
                    <span class="norspan">已绑定</span>
                </li>
                <li>
                    <label>实名认证：</label>
                    <input type="text" class="reallyname" placeholder="请输入真实姓名" value="${loginCustomer.custName}"
                           name="custName">
                    <span class="rellyname-msg"></span>
                    <br>
                    <input type="text" class="card" placeholder="请输入身份证号码" value="${loginCustomer.custIdcard}"
                           name="custIdcard">
                    <span class="card-msg"></span>
                </li>
                <li>
                    <input type="submit" class="sunmitbtn" value="提交">
                </li>
            </ul>


        </form>

    </div>
    <script src="${pageContext.request.contextPath}/js/customer/binding_set.js"></script>
    <script>
        // $(".sunmitbtn").click(function(){
        var email = $(".email").val();
        console.log("email=======================" + email);
        $(".email").attr("value", "email");

        var reallyname = $(".reallyname").val();
        console.log("reallyname=======================" + reallyname);
        $(".reallyname").attr("value", "reallyname");

        var card = $(".card").val();
        console.log("card=======================" + card);
        $(".card").attr("value", "card");

        // });
    </script>
</div>
</body>
</html>